package com.example.shopdemo.repository;

import com.example.shopdemo.entity.ShopCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-01-18
 **/
public interface ShopCategoryRepository  extends JpaRepository<ShopCategory,Long>,JpaSpecificationExecutor<ShopCategory>{

    List<ShopCategory> findByParentId(Long parentId);
}
